package com.sghd.charge.module.model;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;

/**
 * @author frank
 */
@JsonSerialize
@JsonInclude(Include.NON_NULL)
public class OrderInfo {
    /**订单号*/
    private long orderId;
    /** 金额 */
    private int money;
    /**玩家id*/
    private long playerId;
    /** 附加信息 */
    private String addition;

    public static OrderInfo valueOf(long orderId, int money, String addition, long playerId) {
        OrderInfo e = new OrderInfo();
        e.orderId = orderId;
        e.money = money;
        e.addition = addition;
        e.playerId = playerId;
        return e;
    }

    public static OrderInfo valueOf(long orderId, int money) {
        OrderInfo e = new OrderInfo();
        e.orderId = orderId;
        e.money = money;
        return e;
    }

    public long getPlayerId() {
        return playerId;
    }

    public void setPlayerId(long playerId) {
        this.playerId = playerId;
    }

    public int getMoney() {
        return money;
    }

    public void setMoney(int money) {
        this.money = money;
    }

    public String getAddition() {
        return addition;
    }

    public void setAddition(String addition) {
        this.addition = addition;
    }

    public long getOrderId() {
        return orderId;
    }

    public void setOrderId(long orderId) {
        this.orderId = orderId;
    }
}
